//
//  MineTableViewCell.m
//  Delicious2
//
//  Created by dllo on 16/1/9.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "MineTableViewCell.h"

@implementation MineTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.mineLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        
        self.mineImage = [[UIImageView alloc] initWithFrame:CGRectZero];
        
        self.lastLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        self.lastLabel.userInteractionEnabled = YES;
        
        [self addSubview:self.mineImage];
        [self addSubview:self.mineLabel];
        [self addSubview:self.lastLabel];
    }
    return self;
}

-(void)layoutSubviews {
    [super layoutSubviews];

    self.mineImage.frame = CGRectMake(10, 0, 40, 45);
    self.mineLabel.frame = CGRectMake(60, 0, 100, 45);
    self.lastLabel.frame = CGRectMake(self.frame.size.width - 60, 0, 60, 45);

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
